import {Entity, PrimaryGeneratedColumn, Column, BaseEntity, CreateDateColumn} from "typeorm";

@Entity()
export class GoodsType extends BaseEntity{
    @PrimaryGeneratedColumn()
    id: number;

    @Column({type:"varchar",length:64,unique:true})
    typeCode: string;

    @Column({type:"varchar",length:64})
    name: string;

    @Column({type:"int",default:1})
    level:number;
    @CreateDateColumn()
    createtime: Date;
}